<div>
  <%= link_to "Statement",:action =>"view_mystatement" %>
  <%= link_to "Badday",:action =>"view_mybadday" %>
  <%= link_to "Question",:action =>"view_myquestion" %>
</div>
<div class="clear c25">&nbsp;</div>
<div class="boxy">
  <a class="subhead">Category</a>
  <div class="scroll">
    <%if !@category.blank?%>
      <%= link_to "All",{:action =>"view_mystatement"} %>
      <%  @category.each do |cat|%>
        <%= link_to "#{cat.title}",{:action =>"view_mystatement",:cat=>"#{cat.id}"} %>
      <%end%>
    <%end%>
  </div>
</div>
<div class="clear c25">&nbsp;</div>
<div class="boxy">
  <a class="subhead">Statement</a>
  <div class="scroll">
    <%if !@mystatement.nil?%>
      <%@mystatement.each do |state|%>
        <p><b><%= state.message %></b></p>
        <p>created at :<%= state.created_at %> - by :<%= state.user.login %></p>
        <p>agree : <%= state.agree %> | disagree : <%= state.disagree %> </p>
        <% if state.statement_emailer.blank?%>
		<p><%= link_to "Email me",{:controller =>"workspaces",:action =>"statement_emailer",:with =>state.id} %></p>
        <%else%>
		<p><%= link_to "Stop",{:controller =>"workspaces",:action =>"statement_emailer",:without =>state.id} %></p>
		<%end%>	
      <%end%>
    <%end%>
  </div>
</div>
<div class="clear c25">&nbsp;</div>